﻿namespace EyeOpen.IO.Test
{
	using System.IO;

	internal static class DirectoryInfoExtensions
	{
		public static DirectoryInfo AddDirectory(this DirectoryInfo directory, string name)
		{
			return directory.CreateSubdirectory(name);
		}

		public static void AddFile(this DirectoryInfo directory, string fileName)
		{
			File.WriteAllText(Path.Combine(directory.FullName, fileName), string.Empty);
		}
	}
}